# 基础镜像
FROM java:8
# author
MAINTAINER ruoyi

# 挂载目录
VOLUME /home/ruoyi
VOLUME /tmp
# 创建目录
RUN mkdir -p /home/ruoyi
# 指定路径
WORKDIR /home/ruoyi



ADD docker-dev-1.0.0.jar /test.jar

ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/test.jar"]

# 复制jar文件到路径
COPY ./jar/*.jar /home/ruoyi/ruoyi.jar
# 启动应用
ENTRYPOINT ["java","-jar","ruoyi.jar"]
